<?php
/**
 * Created by PhpStorm.
 * User: zeopean
 * Date: 2015/8/6
 * Time: 9:59
 */
 namespace App\Http\Requests;

class InvestorRequest extends Request
{

    public function authorize()
    {
        return true;
    }

    public function attributes()
    {
        return [
            'user_id' => '用户标识',
            'org_id'  => '投资机构标志',
            'invest_log_id' =>  '投资经历id',
            'invest_fields' => '投资领域',
            'invest_phase'  => '投资阶段',
            'invest_num_small'  =>  '投资最小金额',
            'invest_num_big'    =>  '投资最大金额'
        ];
    }

    public function rules()
    {
        return [
            'user_id' => 'required|numeric',
            'org_id'  => 'required|numeric',
            'invest_log_id' =>  'alpha_num',
            'invest_fields' => 'alpha_dash',
            'invest_phase'  => 'alpha_dash',
            'invest_num_small'  =>  'numeric|min:0',
            'invest_num_big'    =>  'numeric'
        ];
    }
}